#
# Modules
#

# Sets sane Zsh built-in environment options.
zmodule environment
# Provides handy git aliases and functions.
zmodule git
# Applies correct bindkeys for input events.
zmodule input
# Sets a custom terminal title.
zmodule termtitle
# Utility aliases and functions. Adds colour to ls, grep and less.
zmodule utility
# archive 命令通吃压缩/解压缩
zmodule archive
# ssh
zmodule ssh

#
# Prompt
#

# zmodule duration-info
# zmodule git-info
# zmodule prompt-pwd
# zmodule magicmace
zmodule romkatv/powerlevel10k --use degit

#
# Completion
#

# Additional completion definitions for Zsh.
zmodule zsh-users/zsh-completions --fpath src
# Enables and configures smart and extensive tab completion.
# completion must be sourced after all modules that add completion definitions.
zmodule completion

#
# Modules that must be initialized last
#

# Fish-like syntax highlighting for Zsh.
# zsh-users/zsh-syntax-highlighting must be sourced after completion
zmodule zsh-users/zsh-syntax-highlighting
# Fish-like history search (up arrow) for Zsh.
# zsh-users/zsh-history-substring-search must be sourced after zsh-users/zsh-syntax-highlighting
zmodule zsh-users/zsh-history-substring-search
# Fish-like autosuggestions for Zsh.
zmodule zsh-users/zsh-autosuggestions
# 简写提示
zmodule MichaelAquilina/zsh-you-should-use
# vim 模式
zmodule jeffreytse/zsh-vi-mode
# z.lua
zmodule skywind3000/z.lua # --cmd 'eval "$(lua {}/z.lua --init zsh enhanced once fzf)"'
zmodule changyuheng/fz
# abbr
zmodule olets/zsh-abbr
# fzf-tab
zmodule Aloxaf/fzf-tab

# vim:ft=zsh
